#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui>

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void closeEvent(QCloseEvent *event);
    void updateEnables();
    QString getSuggestedFile(const QString& name);
    QString getSuggestedImageName(const QString& name);
    QString saveScreenshot(const QString& name, QString* ofile);
    void updateSampleText();
private:
    Ui::MainWindow *ui;
    QIcon icon;
    QSystemTrayIcon systray;
    QTimer timer;

private slots:
    void on_imageTypes_currentIndexChanged(int index);
    void on_screenshotFolder_textChanged(QString );
    void on_stop_clicked();
    void on_start_clicked();
    void on_useScreenshot_clicked();
    void on_testScreenshotFolder_clicked();
    void on_browseScreenshotFolder_clicked();
    void iconActivated(QSystemTrayIcon::ActivationReason reason);

    void timerTriggered();
};

#endif // MAINWINDOW_H
